<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>小程序支付配置</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="${siteurl}bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="${siteurl}plugins/FontAwesome/css/font-awesome.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="${siteurl}plugins/ionicons201/css/ionicons.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="${siteurl}dist/css/AdminLTE.min.css">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="${siteurl}dist/css/skins/_all-skins.min.css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    [#include "/admin/common/commons.html"]
</head>
<body class="hold-transition skin-blue sidebar-mini">
<!-- Site wrapper -->
<div class="wrapper">

    <header class="main-header">
        <!-- Header Navbar: style can be found in header.less -->
        [#include "/admin/common/nav.html"]
    </header>

    <!-- =============================================== -->

    <!-- Left side column. contains the sidebar -->
    <aside class="main-sidebar">
        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
            [@user_panel /]
            <!-- search form -->
            [@sidebar_form /]
            <!-- /.search form -->
            <!-- sidebar menu: : style can be found in sidebar.less -->
            <ul class="sidebar-menu">
                <li class="header">主面板</li>
                [@menustag id=1]
                [#list list as item]
                [@menu item "1,73,75"]
                [/@menu]
                [/#list]
                [/@menustag]
            </ul>
        </section>
        <!-- /.sidebar -->
    </aside>

    <!-- =============================================== -->

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <!-- Main content -->
        <section class="content">
            <!-- Default box -->
            <!-- /.box -->
            <div class="box box-default box-solid">
                <div class="box-header with-border">
                    <h3 class="box-title">小程序支付配置</h3>
                </div>
                <!-- /.box-header -->
                <!-- form start -->
                <form class="form-horizontal" action="${siteurl}admin/tenant_plugin_payment/weiapppayment/update.htm" method="post">
                    <div class="box-body">
                        <div class="form-group">
                            <label for="appId" class="col-sm-2 control-label">小程序id</label>
                            <div class="col-sm-10">
                                <input class="form-control" maxlength="50" id="appId" name="appId" value="${pluginConfig.attributes['appId']!''}" placeholder="appId" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="mch_id" class="col-sm-2 control-label">商户号</label>
                            <div class="col-sm-10">

                                <input class="form-control" maxlength="50" id="mch_id" name="mch_id" value="${pluginConfig.attributes['mch_id']!''}" placeholder="商户号" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="key" class="col-sm-2 control-label">商户key</label>
                            <div class="col-sm-10">

                                <input class="form-control" maxlength="50" id="key" name="key" value="${pluginConfig.attributes['key']!''}" placeholder="商户key" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="subAppId" class="col-sm-2 control-label">小程序子id</label>
                            <div class="col-sm-10">
                                <input class="form-control" maxlength="50" id="subAppId" name="subAppId" value="${pluginConfig.attributes['subAppId']!''}" placeholder="小程序子id" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="sub_mch_id" class="col-sm-2 control-label">小程序子商户号</label>
                            <div class="col-sm-10">
                                <input class="form-control" maxlength="50" id="sub_mch_id" name="sub_mch_id" value="${pluginConfig.attributes['sub_mch_id']!''}" placeholder="小程序子商户号" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="payType" class="col-sm-2 control-label">小程序模式</label>
                            <div class="col-sm-10">
                                <input class="form-control" maxlength="50" id="payType" name="payType" value="${pluginConfig.attributes['payType']!''}" placeholder="小程序模式 service服务商模式" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="packageinfo" class="col-sm-2 control-label">package</label>
                            <div class="col-sm-10">
                                <input class="form-control" maxlength="50" id="packageinfo" name="packageinfo" value="${pluginConfig.attributes['packageinfo']!''}" placeholder="package" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="notify_url" class="col-sm-2 control-label">通知url</label>
                            <div class="col-sm-10">
                                <input class="form-control"  id="notify_url" name="notify_url" value="${pluginConfig.attributes['notify_url']!''}" placeholder="通知url" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="order" class="col-sm-2 control-label">排序号</label>
                            <div class="col-sm-10">

                                <input class="form-control" maxlength="50" id="order" name="order" value="${pluginConfig.sortNum!''}" placeholder="排序号" type="number">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="isEnabled" class="col-sm-2 control-label">是否启用</label>
                            <div class="col-sm-10">

                                <input type="checkbox" id="isEnabled" name="enabled"  [#if pluginConfig.isEnabled] checked[/#if] />
                            </div>
                        </div>
                    </div>
                    <!-- /.box-body -->
                    <div class="box-footer">
                        <button type="submit" class="btn btn-primary pull-right">保存</button>
                    </div>
                    <!-- /.box-footer -->
                </form>
            </div>

        </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->

    [#include "/admin/common/footer.html"]

    <!-- Control Sidebar -->
    [#include "/admin/common/aside.html"]

    <!-- /.control-sidebar -->
    <!-- Add the sidebar's background. This div must be placed
         immediately after the control sidebar -->
    <div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->

<!-- jQuery 2.2.3 -->
<script src="${siteurl}plugins/jQuery/jquery-2.2.3.min.js"></script>
<!-- Bootstrap 3.3.6 -->
<script src="${siteurl}bootstrap/js/bootstrap.min.js"></script>
<!-- SlimScroll -->
<script src="${siteurl}plugins/slimScroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="${siteurl}plugins/fastclick/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="${siteurl}dist/js/app.min.js"></script>
<!-- AdminLTE for demo purposes -->

<script src="${siteurl}dist/js/list.js"></script>


<script type="text/javascript">
    $(document).ready(function () {
        [#if erro??]
        alert("${erro}");
        [/#if]
    });
</script>

</body>
</html>
